home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / Esmart / Esmart_Draggies.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  900b  |  38 lines

  1. #ifndef ESMART_DRAGGIES_H
  2. #define ESMART_DRAGGIES_H
  3.  
  4. #include <Evas.h>
  5. #include <Ecore_Evas.h>
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. /**
  12.  * How to use Esmart Draggies.
  13.  */
  14. typedef struct _Esmart_Draggies Esmart_Draggies;
  15.  
  16. struct _Esmart_Draggies
  17. {
  18.   Ecore_Evas *ee;        /* The ecore_evas that should move */
  19.   int dx, dy;            /* offset from 0,0 of the window */
  20.   int clicked;            /* Whether the mouse is down now or not */
  21.   int button;            /* the button that handles dragging */
  22.   Evas_Object *obj;        /* the rectangle that gets events */
  23. };
  24.  
  25. Evas_Object *esmart_draggies_new (Ecore_Evas * evas);
  26. void esmart_draggies_button_set (Evas_Object * o, int button);
  27. void esmart_draggies_event_callback_add (Evas_Object * o,
  28.                      Evas_Callback_Type type,
  29.                      void (*func) (void *data, Evas * e,
  30.                                Evas_Object * o,
  31.                                void *ev),
  32.                      const void *data);
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif
  38.